package cn.zw.design.strategy;

public class MallardDuck extends Duck {
	public MallardDuck() {
		this.flyAble = new FlyWithWings();
		this.quackAble = new Quack();
	}
	@Override
	public void display() {
		System.out.println("我是黑色羽毛");
	}
	public static void main(String[] args) {
		new MallardDuck().fly();
		new MallardDuck().quack();
	}
}
